//package cn.chencaiju.web;
//
//import javax.servlet.http.HttpSession;
//
//import org.slf4j.Logger;
//import org.slf4j.LoggerFactory;
//import org.springframework.stereotype.Controller;
//import org.springframework.web.bind.annotation.RequestMapping;
//
//@Controller
//public class LoginController {
//	Logger logger = LoggerFactory.getLogger(LoginController.class);
//	
//	@RequestMapping("/pages/login")
//	public String login(HttpSession session,String name,String password) {
//		if("admin".equals(name)) {
//			session.setAttribute("name", name);
//			session.setAttribute("password", password);
//			logger.info("登陆成功");
//			return "forward:/post/load";
//		}else {
//			logger.info("请登录再说！");
//			return "login";
//		}
//	}
//}
